package com.ktjy.mapper;

import factory.entity.*;
import factory.simple.SimpleFactory;

import java.util.Scanner;

public class NewsDaoStore {
    public static void main(String[] args) throws Exception {
        Scanner input = new Scanner(System.in);
        System.out.print("请输入运算符号：");
        String type = input.next();
        NewsDao newsDao = SimpleFactory.createNewsDao(type);
        System.out.println(newsDao.Calculation(10,2));
    }
}
